package com.yic.module.base.convert.workshop;

import java.util.*;

import com.yic.framework.common.pojo.PageResult;

import com.yic.module.base.api.workshop.dto.WorkshopRespDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import com.yic.module.base.controller.admin.workshop.vo.*;
import com.yic.module.base.dal.dataobject.workshop.WorkshopDO;

/**
 * 生产车间 Convert
 *
 * @author 系统管理员
 */
@Mapper
public interface WorkshopConvert {

    WorkshopConvert INSTANCE = Mappers.getMapper(WorkshopConvert.class);

    WorkshopDO convert(WorkshopCreateReqVO bean);

    WorkshopDO convert(WorkshopUpdateReqVO bean);

    WorkshopRespVO convert(WorkshopDO bean);

    List<WorkshopRespVO> convertList(List<WorkshopDO> list);

    PageResult<WorkshopRespVO> convertPage(PageResult<WorkshopDO> page);

    List<WorkshopExcelVO> convertList02(List<WorkshopDO> list);

    List<WorkshopSimpleRespVO> convertList03(List<WorkshopDO> list);

    WorkshopRespDTO convert01(WorkshopDO workshop);

    List<WorkshopRespDTO> convertList04(List<WorkshopDO> workshopList);
}
